﻿//  Copyright (c) 2011 Ray Liang (http://www.dotnetage.com)
//  Licensed MIT: http://www.opensource.org/licenses/mit-license.php

using System;

namespace DNA.Mvc
{
    public interface IDataContext:IUnitOfWork,IDisposable
    {
        IWebRepository Webs { get; }

        IWebPageRepository WebPages { get;  }

        IRepository<WebPageRole> WebPageRoles { get; }

        IWidgetRepository Widgets { get;  }

        IWidgetDescriptorRepository WidgetDescriptors { get;  }

        IWidgetTemplateRepository WidgetTemplates { get; }

        IPermissionsetRepository PermissionSets { get; }

        IPermissionRepository Permissions { get; }

        //ISubscriptionRepository Subscriptions { get;  }

        IOpenIDRepository OpenIDs { get; }

        //IPrivateMessageRepository PrivateMessages { get; }

        //IFriendRepository Friends { get; }

        IPackageRepository Themes { get; }

        IPackageRepository Solutions { get; }

        IPackageRepository Temporary { get; }
    }
}
